import Cookie from 'js-cookie'

export function getToken() {
  return Cookie.get('user')
}

export function removeToken() {
  Cookie.remove('user')
}

export const setUserInfo = (data, commit) => {
  Cookie.set('user', data.account, { expires: 1 })
}
